﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%Dim Model=CType(ViewData("Model"),List(Of NerdDinnerVB.Dinner))%>
    <h2>
        Upcoming Dinners</h2>
    <ul>
        <% For Each item In Model%>
        <li>
            <%=Html.ActionLink(item.Title, "Details", New With {.id=item.DinnerID }) %>
            n
            <%=Html.Encode(item.EventDate.ToShortDateString())%>
            @
            <%=Html.Encode(item.EventDate.ToShortTimeString())%>
        </li>
        <% Next%>
    </ul>
</asp:Content>
